extends PropertySetter


class_name PropertyFindSetter
"""
设置属性值
"""


## 需要设置的对象查找器
@export var finder_or_node: Node = null


func __check_exports() -> Dictionary:
    return IComponent.merge({
        "finder_or_node": IComponent.find_child.bind(self, func(x): return x is INodeFinder, finder_or_node),
    }, super.__check_exports())

func get_wrapper() -> Object:
    return finder_or_node.find() if finder_or_node is INodeFinder else finder_or_node

func __get_update_value(w: Object, p: String) -> Variant:
    return null
